<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<html>
<head>
<title>Human Resource Entry</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<html:form action="/canSkillUpdate">
	<div>
		<html:hidden property="id"/>
		<html:hidden property="canId"/>
		<br/>
		<table>
			<tr>
				<td class="txtLabel" style="width:150px;"><label>Skill: *</label></td>
				<td>
					<html:select name="canSkillUpdate" property="skill" style="width:220px;">
						<html:optionsCollection property="allSkills" label="label" value="value" />
					</html:select>
				</td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:150px;"><label>Years of Experience: *</label></td>
				<td><html:text property="year" style="width:220px;"></html:text></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:150px;"><label>Comments</label></td>
				<td><html:textarea property="comment" style="width:250px;height:100px;"></html:textarea></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:150px;"></td>
				<td><a style="color: red;"><bean:write name="canSkillUpdate" property="message"/></a></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:150px;"></td>
				<td>
					<logic:equal name="canSkillUpdate" property="isAddNew" value="true">
						<input type="button" value="Add" name="btnAdd" class="sbutton" id="btnAdd" onclick="postParams('act=add&btnAdd');"></input>
					</logic:equal>
					<logic:equal name="canSkillUpdate" property="isAddNew" value="false">
						<input type="button" value="Edit" name="btnEdit" class="sbutton" id="btnEdit" onclick="postParams('act=edit&btnEdit');"></input>
					</logic:equal>
					<input type="reset" value="Reset" class="sbutton"></input>
				</td>
			</tr>
		</table> 
	</div> 
	</html:form>
</body>
</html>